import request from '@/utils/request'

export function createNews(data){
    return request({
        url:'/news/addNews',
        method:'post',
        data:data
    })
}

export function updateNews(data){
    return request({
        url:'/news/updateNews',
        method:'post',
        data:data
    })
}

export function deleteNews(data){
    return request({
        url:'/news/delNews',
        method:'post',
        data:data
    })
}

export function findNewsList(data){
    return request({
        url:'/news/selectNewsList',
        method:'post',
        data:data
    })
}

export function findTopNews(data){
    return request({
        url:'/news/selectNewsTopNum',
        method:'post',
        data:data
    })
}

export function findNewsOne(data){
    return request({
        url:'/news/selectNews',
        method:'post',
        data:data
    })
}

export function topIndex(data){
    return request({
        url:'/news/hotTop',
        method:'post',
        data:data
    })
}

export function topIndexCategory(data){
    return request({
        url:'/news/newsIsTop',
        method:'post',
        data:data
    })
}




